#include <stdio.h>

int sum(int tmp)
{
    int i = 0;
    int sum = 0;
    for(; i <= tmp; i++)
            sum += i;

    return sum;
}

int main()
{
    int tmp = 100;
    int ret = sum(tmp);

    printf("ret = %d\n", ret);
    return 0;
}

